import {
  wxRequest,
  wxUpload
} from '@/utils/wxRequest';

const apiMall = 'http://dati.test.yarsenal.com'

const userLogin = (params) => wxRequest(params, apiMall + '/api/frontend/wechat-login');

const userInfo = (params) => wxRequest(params, apiMall + '/api/frontend/user');

const updateUserInfo = (params) => wxRequest(params, apiMall + '/api/frontend/user-info');

const uploadFile = (file) => wxUpload(file, apiMall + '/api/frontend/upload');

export default {
  userLogin,
  userInfo,
  updateUserInfo,
  uploadFile
}
